<?php
namespace admin\controller;
use \temmoku\admin;
use \temmoku\lib\pinyin AS pinyins;
class pinyin extends admin
{
	public function pinyin(){
		$pinyin= pinyins::pinyin($_GET['name']);
    	echo json_encode(['code'=>0,'pinyin'=>$pinyin]);
	}
}
?>